package com.benjaminwan.read.free.lib

object HidDefinition {
    init {
        System.loadLibrary("hid")
    }
    const val NAME = "ComboBtDevice"
    const val DESCRIPTION = "ComboBtDevice"
    const val PROVIDER = "Benjaminwan"
    const val KEYBOARD_INPUT_REPORT_ID: Byte = 1
    const val KEYBOARD_OUTPUT_REPORT_ID: Byte = 1
    const val MOUSE_REPORT_ID: Byte = 2
    const val GAME_PAD_REPORT_ID: Byte = 3
    const val BOOT_KEYBOARD_REPORT_ID: Byte = 1
    const val BOOT_MOUSE_REPORT_ID: Byte = 2
    const val BATTERY_REPORT_ID: Byte = 32
    const val KEYBOARD_LED_NUM_LOCK: Int = 0x01
    const val KEYBOARD_LED_CAPS_LOCK: Int = 0x02
    const val KEYBOARD_LED_SCROLL_LOCK: Int = 0x04

    external fun getHidDescriptor(): ByteArray
    val DESCRIPTOR: ByteArray
        get() = getHidDescriptor()
}